﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
<%@ Import Namespace="B2B.Models" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
</asp:Content>


<asp:Content ID="Content3" ContentPlaceHolderID="main_content" runat="server">
<%
    SP_ChiTietSanPham chitietSP = (SP_ChiTietSanPham)ViewData["chitietSP"];
    String linkSP = chitietSP.MaSP.ToString();
%>
    <div>
       
        <div class="imgproductdetail">
            <h3>
                <img src="../../Images/Alibaba/<%=chitietSP.HinhAnh %>" alt="Anh san pham" /></h3>
        </div>
        <!--Product info -->
        <div>
            <div><h4><a href="#"><%=chitietSP.TenSP %></a></h4></div>
            <div><a href>Add to Inquiry Cart</a>||<a href="#"> Add to My Favorites </a>|| <a href="#">Share to </a></div>
            <div>
                <table>
                    <tbody>
                        <tr>
                            <th>FOB Price:</th>
                            <td><%=chitietSP.DonGia %>VND / Set</td>
                        </tr>
                        <tr>
                            <th>Port: </th>
                            <td>lianyungang prot</td>
                        </tr>
                        <tr>
                            <th>Minium Oder Quantity: </th>
                            <td><%=chitietSP.SoLuongDatToiThieu %> Set/Sets</td>
                        </tr>
                        <tr>
                            <th>Supply Ability:</th>
                            <td><%=chitietSP.KhaNangCungUng %> Set/Sets per Year</td>
                        </tr>
                        <tr>
                            <th>Payment Terms:</th>
                            <td><%=chitietSP.MaLoaiThanhToan %></td>
                        </tr>
                    </tbody>
                </table>
                <!--Hop tac voi nha cung cap-->
                <div align="right" >
                    <div style="float:left; height:100px; padding-top:20px; padding-right:10px; padding-left:10px">
                        <a href="#" id="<%=chitietSP.MaSP %>">
                            <img src="../../Images/supplier.png" /> <%=chitietSP.HoTen %> 
                        </a>
                    </div>
                    <div style="float:left; height:100px; padding-top:7px; padding-left:20px""> 
                        <a href="/Product/ProductSend/<%=chitietSP.MaSP%>/<%=chitietSP.TenSP %>/<%=chitietSP.Email %>/<%=chitietSP.HoTen %>/<%=chitietSP.HinhAnh %>">
                            <img src="../../Images/ContactSupplier.png" /> 
                        </a>
                    </div>
                      <div class="clr"></div>
                </div>
              
            </div>
        </div>
        <!--Kết thúc product info-->
        
        <!--Bắt đầu DetailInfoDownSec-->
        <div>
            <div>
                <!--Menu tab detailInfo-->
                <hr />
                <div id="trigger-info">
                     <input type="button"class="trigger error-trigger" value="Product Detail" onclick="loadInfoSP()"/> 
                     <input type="button"class="trigger error-trigger" value="Company Profile" onclick="loadCompanyInfo()"/> 
                </div>
                <!--Kết thúc menu tab detailIndo-->
                <!--Bắt đầu tabContent detailInfo-->
                <div id="divInfo">
                    
                </div>
            </div>
        </div>
        
    </div>
    <script type="text/javascript">
        function loadInfoSP() {
            alert("Function is editting");
        }

        function loadCompanyInfo() {
            alert("Function is editting");
        }
    </script>
</asp:Content>
